package com.jobpass.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jobpass.common.model.Recruit;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author JobPass
 * @since 2020-07-17
 */
public interface RecruitService extends IService<Recruit> {
    /**
     * 查询所有Recruit或条件查询
     * @return
     */
    List<Recruit> getRecruitBy(@Param("site")String site,
                               @Param("pay") BigDecimal pay,
                               @Param("post")String post,
                               @Param("creatTime")String creatTime);

    /**
     * 查询所有Recruit
     * @return
     */
    List<Recruit> FindAllRecruit ();

    /**
     * 根据ID查询Recruit
     *
     */
    Recruit FindRecruitById(Long id);

    /**
     * 根据id删除Recruit
     */
    int DeleteRecruitById(Long id);

    /**
     * 根据id修改Recruit Id 和 其他修改项
     */
    int UpdateRecruitById(Recruit recruit);

    /**
     * 添加Recruit
     */
    int SavaRecruit(Recruit recruit);
}
